import { JwtService } from '@nestjs/jwt';
import { BadRequestException, Injectable, NestMiddleware } from '@nestjs/common';

@Injectable()
export class MiddleLogMiddleware implements NestMiddleware {
  use(req: any, res: any, next: () => void) {
    console.log('中间件',req.headers);
    next(); 
  }
}
